<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: jscss">
    <title>城市价格系数</title>
</head>
<style>
    .operator-panel .layui-btn{
        width: 100px;
    }
</style>
<body>

<div class="layui-fluid">

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/brand/ratio/list.action">
            <div class="layui-form" th:include="brand/ratio/_query :: query "></div>
        </form>

        <div class="layui-card-body">

            <div th:replace="brand/ratio/_table::table"/>

            <!--表格工具条
                id属性统一定义为zmn-table-tool
                功能相似的按钮置于同一组内(layui-btn-group)，
                重要的功能按钮使用默认按钮(如以下“启用”和“停用”按钮)，
                次要的功能按钮使用原始按钮(如以下“新增报表数据源”按钮，加入样式layui-btn-primary)
                -->
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/brand/ratio/delete.action?priceType='+vo.priceType)}">
                            <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delete">删除</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/brand/ratio/brandRatio.action?priceType='+vo.priceType)}">
                            <a class="layui-btn layui-btn-sm layui-btn-primary"
                               href="javascript:void(0)" onclick="setBrandRatio(0, 1, true);">+新增</a>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        vo:[[${vo}]],
        items: [[${items}]],
        hasViewDefaultRatio: [[${#authPermit.checkPermit('/brand/ratio/brandRatio.action?priceType='+vo.priceType)}]],
        hasViewOutCategRatio: [[${#authPermit.checkPermit('/brand/ratio/categoryOutRatio.action?priceType='+vo.priceType)}]],
        hasViewProjectCategRatio: [[${#authPermit.checkPermit('/brand/ratio/categoryProjectRatio.action?priceType='+vo.priceType)}]],
        hasViewInCategRatio: [[${#authPermit.checkPermit('/brand/ratio/categoryInRatio.action?priceType='+vo.priceType)}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 20220124
    }).extend({
        index: "lib/index",
        serv_brandratio_list: "brand/ratio/zmn.plat.brandratio.list",
    }).use(['index', 'serv_brandratio_list']);

</script>
</body>
</html>

<script type="text/html" id="toolbar_help">
    <div class="layui-inline" title="帮助" lay-event="CUSTOM_HELP"><i class="layui-icon layui-icon-help"></i></div>
</script>
<script type="text/html" id="help_content">
    <div>
        <label style="font-weight: bold">说明</label> <br/>
        <p>系数展示为：待生效系数/已生效系数</p>
    </div>
</script>